﻿#ifndef MATH_H
#define MATH_H

#include <QObject>

class Math : public QObject
{
    Q_OBJECT
public:
    explicit Math(QObject *parent = nullptr);
    int generateRandomNumber(int min,int max);
    // 先乘后加 a*b+c
    const QString fun1();
    // 先乘后减 a*b-c
    const QString fun2();
    // 先除后加 a*b+c
    const QString fun3();
    // 先除后减 a*b-c
    const QString fun4();
private:

    int doCount(int num1,int num2,QString op);

signals:

};

#endif // MATH_H
